package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;
import com.dhcc.core.modules.system.entity.User;


/**
 * 业务用户
 * 
 * @ClassName: CdcUserEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:06
 */
@TableName("t_cdc_ct_user") 
public class CdcUserEntity extends DataEntity<CdcUserEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	//索引码
	private String xcode;	
	//工号
	private String code;	
	//姓名
	private String name;	
	//医护类型
	private Long busUserTypeId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busUserType;
	//职称(级别)
	private Long busUserLevelId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busUserLevel;
	//业务数据类型
	private Long dataId;
    @TableField(exist = false)
    private CdcDataEntity data;		
	//系统用户
	private Long sysUserId;	
    @TableField(exist = false)
    private User sysUser;
	public CdcDictionaryEntity getBusUserType() {
        return busUserType;
    }
    public void setBusUserType(CdcDictionaryEntity busUserType) {
        this.busUserType = busUserType;
    }
    public CdcDictionaryEntity getBusUserLevel() {
        return busUserLevel;
    }
    public void setBusUserLevel(CdcDictionaryEntity busUserLevel) {
        this.busUserLevel = busUserLevel;
    }
    public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }
    public User getSysUser() {
        return sysUser;
    }
    public void setSysUser(User sysUser) {
        this.sysUser = sysUser;
    }
    //是否有效
	private Integer isActive;	

	/**
	 * 设置：索引码
	 */
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
	/**
	 * 获取：索引码
	 */
	public String getXcode() {
		return xcode;
	}
	/**
	 * 设置：工号
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：工号
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：姓名
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：姓名
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：医护类型
	 */
	public void setBusUserTypeId(Long busUserTypeId) {
		this.busUserTypeId = busUserTypeId;
	}
	/**
	 * 获取：医护类型
	 */
	public Long getBusUserTypeId() {
		return busUserTypeId;
	}
	/**
	 * 设置：职称(级别)
	 */
	public void setBusUserLevelId(Long busUserLevelId) {
		this.busUserLevelId = busUserLevelId;
	}
	/**
	 * 获取：职称(级别)
	 */
	public Long getBusUserLevelId() {
		return busUserLevelId;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：系统用户
	 */
	public void setSysUserId(Long sysUserId) {
		this.sysUserId = sysUserId;
	}
	/**
	 * 获取：系统用户
	 */
	public Long getSysUserId() {
		return sysUserId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
}
